package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.BtyDingdingMonthAttend;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyDingdingMonthAttendParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyDingdingMonthAttendResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 半天妖-钉钉-月度-考勤查询 Mapper 接口
 * </p>
 *
 * @author wjk
 * @since 2022-05-30
 */
public interface BtyDingdingMonthAttendMapper extends BaseMapper<BtyDingdingMonthAttend> {

    /**
     * 获取列表
     *
     * @author wjk
     * @Date 2022-05-30
     */
    List<BtyDingdingMonthAttendResult> customList(@Param("paramCondition") BtyDingdingMonthAttendParam paramCondition);

    /**
     * 获取map列表
     *
     * @author wjk
     * @Date 2022-05-30
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BtyDingdingMonthAttendParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author wjk
     * @Date 2022-05-30
     */
    Page<BtyDingdingMonthAttendResult> customPageList(@Param("page") Page page, @Param("paramCondition") BtyDingdingMonthAttendParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author wjk
     * @Date 2022-05-30
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BtyDingdingMonthAttendParam paramCondition);

    /**
     * 批量保存
     *
     * @author
     * @Date 2022-06-01
     */
    Integer addList(@Param("list") List<BtyDingdingMonthAttend> list);

    /**
     * 根据月份删除数据
     * @Date 2022-06-01
     * @param lastMonth
     * @return
     */
    Integer deleteByYearMonth(@Param("lastMonth") String lastMonth);

    List<BtyDingdingMonthAttendResult> getList(@Param("param") BtyDingdingMonthAttendParam param);

    /**
     * 删除liu1_qin 数据
     * @return
     */
    Integer deleteLiuQin();

    /**
     * 根据月份同步数据
     * @param lastMonth
     * @return
     */
    Integer insertLiuQin(@Param("lastMonth") String lastMonth);
}
